home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / osdefs.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-10  |  901 b   |  51 lines

  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* Operating system dependencies */
  8.  
  9. #ifdef macintosh
  10. #define SEP ':'
  11. #define MAXPATHLEN 256
  12. /* Mod by Jack: newline is less likely to occur in filenames than space */
  13. #define DELIM '\n'
  14. #endif
  15.  
  16. #ifdef _AMIGA
  17. #define SEP '/'
  18. #define MAXPATHLEN 256
  19. #define DELIM ';'
  20. #endif
  21.  
  22. /* Mod by chrish: QNX has WATCOM, but isn't DOS */
  23. #if !defined(__QNX__)
  24. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
  25. #define SEP '\\'
  26. #define ALTSEP '/'
  27. #define MAXPATHLEN 256
  28. #define DELIM ';'
  29. #endif
  30. #endif
  31.  
  32. /* Filename separator */
  33. #ifndef SEP
  34. #define SEP '/'
  35. #endif
  36.  
  37. /* Max pathname length */
  38. #ifndef MAXPATHLEN
  39. #define MAXPATHLEN 1024
  40. #endif
  41.  
  42. /* Search path entry delimiter */
  43. #ifndef DELIM
  44. #define DELIM ':'
  45. #endif
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* !Py_OSDEFS_H */
  51.